import { constantRoutes } from '@/router/index'
const state = {
  // router实时同步路由的配置
  //      1.默认是静态路由,所以router的默认值也要是静态路由
  router: constantRoutes
}
const mutations = {
  setRouter(state, value) {
    state.router = value
  }
}
const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
